﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApplication1
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        int a = 0;
        private void button_caiji_Click(object sender, RoutedEventArgs e)
        {
            double value = 0.0;
            a += 1;
            double tempLimt = double.Parse(textBox.Text);
            double temp = double.Parse(textBox2.Text);
            label4.Content = temp > tempLimt ? "温度大于界限值，高！" : "温度不大于界限值，低！";
            label3.Content = "你是第" + a +"次点击了【采集】按钮";
        }
    }
}
